<div class="modal-dialog" style="width:680px">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">×</button>
            <h4 class="modal-title">{{title}}</h4>
        </div>
        <div class="modal-body">
            <section class="panel panel-default" style="margin-bottom:0;">
                <header class="panel-heading bg-light">
                    <ul class="nav nav-tabs">
                        <li class="{{if ctype=='fn'}}active{{/if}}">
                            <a href="#js_alllink_fun" data-id="js_alllink_fun" data-toggle="tab" data-path="{{path}}" data-type="fn">功能链接</a>
                        </li>
                        <li class="{{if ctype=='classes'}}active{{/if}}">
                            <a href="#js_alllink_class" data-id="js_alllink_class" data-toggle="tab" data-path="{{path}}" data-type="classes">分类链接</a>
                        </li>
                        <li class="{{if ctype=='goods'}}active{{/if}}">
                            <a href="#js_alllink_goods" data-id="js_alllink_goods" data-toggle="tab" data-path="{{path}}" data-type="goods">商品链接</a>
                        </li>
                        <li class="{{if ctype=='actpage'}}active{{/if}}">
                            <a href="#js_alllink_actpage" data-id="js_alllink_actpage" data-toggle="tab" data-path="{{path}}" data-type="actpage">页面链接</a>
                        </li>
                    </ul>
                </header>

                <div class="panel-body">
                    <div class="tab-content"> 
                        <div class="tab-pane {{if ctype=='fn'}}active{{/if}}" id="js_alllink_fun" data-type="fn" style="overflow-x:hidden">
                            <i class="fa fa-spinner fa-spin"></i>
                        </div>
                        <div class="tab-pane {{if ctype=='classes'}}active{{/if}}" id="js_alllink_class" data-type="classes" style="overflow-x:hidden">
                            <i class="fa fa-spinner fa-spin"></i>
                        </div>
                        <div class="tab-pane {{if ctype=='goods'}}active{{/if}}" id="js_alllink_goods" data-type="goods" style="overflow-x:hidden">
                            <form class="form-horizontal search-form" data-type="goods" data-path="{{path}}">
                                <div class="form-group">
                                    <div class="col-sm-6 col-sm-offset-6">
                                        <div class="input-group">
                                            <input type="text" class="input-sm form-control" name="keywords" placeholder="请输入商品名称" value=""/>
                                            <span class="input-group-btn">
                                                <button class="btn btn-sm btn-default" data-type="ajaxSearch" type="button" title="搜索">
                                                    <i class="fa fa-search"></i>
                                                </button>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <input type="hidden" name="page" class="js_alllink_page" value="1"/>
                            </form>
                            <div class="js_alllink_list">
                                <i class="fa fa-spinner fa-spin"></i>
                            </div>
                            
                        </div>
                        <div class="tab-pane {{if ctype=='actpage'}}active{{/if}}" id="js_alllink_actpage" data-type="actpage" style="overflow-x:hidden">
                            <i class="fa fa-spinner fa-spin"></i>
                        </div>
                        
                    </div>
                </div>
            </section>
            
        </div>
        <form class="form-horizontal form-modal" method="post"  novalidate="novalidate">
            <div class="modal-footer">
                <input type="hidden" value="12306" name="id">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </form>
    </div>
</div>
